﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace DoAn_BumTruong_DesignPattern
{
    public class Menus
    {
        [Key()]
        public int MenuID { get; set; }
        [StringLength(50)]
        public string Name { get; set; }
        [StringLength(225)]
        public string Alias { get; set; }//Lien ket than thien
        [StringLength(4000)]
        public string Descriptions { get; set; }
        public bool Active { get; set; }//Menu duoc hien thi hay khong
        public int OrderNo { get; set; }//Thu tu hien thi menu
        public int? ParentID { get; set; }
        public int MenuType { get; set; }//Phan biet menu nam tai vi tri nao
        //
        public IList<Articles> Articles { get; set; }//1 menu co nhieu bai viet
    }
}